home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13065 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: newsstand.tc.umn.edu!usenet
  2. From: breid001@maroon.tc.umn.edu (Don Breidenbach)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Input / output files
  5. Date: Sat, 23 Mar 1996 08:39:48 GMT
  6. Organization: University of Minnesota
  7. Message-ID: <4j06bp$c7c@epx.cis.umn.edu>
  8. References: <4iubnc$ct7@wagner.spc.videotron.ca>
  9. NNTP-Posting-Host: dialup-12-a-8.gw.umn.edu
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. alixand@stjeannet.ca (Fignan) wrote:
  13.  
  14.  
  15. >Hi , I have 2 simple and easy question 
  16.  
  17. >1- How can we create an output files?
  18.  
  19. >    1.1. How can we write in it?
  20.  
  21. >2. How can we use an existing file?
  22.  
  23. >3. What is the format os such a file?
  24.  
  25. >4. Is it possible to save a class data on such a file?
  26.  
  27. >Thanks a lot
  28. >Sebas
  29.  
  30. Hi,
  31.     There are several ways of reading and writing to disk files in C++.
  32. Although you don't specify a compiler, some (like Borland) provide a
  33. class (in Borland's case it is the TFILE class) that encapsulates all
  34. the normal io functions you would expect.
  35.     There are other more generic approaches to file io - either using FILE
  36. pointers or stream files. I would suggest that you pick up a basic
  37. book on C++ - it will cover the fundamentals of file io for you.
  38.     Hope this helps.
  39.  
  40.             Don
  41.  
  42.  
  43.  
  44.